<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<meta name="description" content="">
		<meta name="author" content="">

		<title>Dashboard Template for Bootstrap</title>
		<!-- Bootstrap core CSS -->
		<link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">

		<!-- Custom styles for this template -->
		<link th:href="@{/css/dashboard.css}" rel="stylesheet">

		<!--侧边栏-->
		<link th:href="@{/assets/dist/css/bootstrap.min.css}" rel="stylesheet">
		<link th:href="@{/assets/sidebars/sidebars.css}" rel="stylesheet">
		<script th:src="@{/assets/dist/js/bootstrap.bundle.min.js}"></script>

		<style>
		</style>

	</head>

	<body>

		<!--插入-->
		<div th:replace="~{commons/commons::top_bar}"></div>


		<div class="container-fluid">
			<div class="row">

				<!--插入-->
				<div th:replace="~{commons/commons::side_bar(active='ast_pfsi_device_open_from.html')}"></div>

				<main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
					<h5 >设备状态信息定时上报-表单</h5>
					<form th:action="@{/asset/getAstPfsiDeviceOpens}" method="post">
						<button type="submit" class="btn btn-primary">返回</button>

						<div class="container">

							<div class="row">
								<div class="col-md-3">
									<label>设备编码</label>
									<!--隐藏记录id type="hidden" -->
									<input th:value="${data.getAst_pfsi_device_state_msg_id()}" name="ast_pfsi_device_state_msg_id" type="hidden">
									<input th:value="${data.getDevice_code()}" type="text" name="device_code" class="form-control">
								</div>
								<div class="col-md-3">
									<label>cmd</label>
									<input th:value="${data.getCmd()}" type="text" name="cmd" class="form-control">
								</div>
								<div class="col-md-3">
									<label>消息版本号</label>
									<input th:value="${data.getVer()}" type="text" name="ver" class="form-control">
								</div>
							</div>

							<div class="row">
								<div class="col-md-3">
									<label>故障码</label>
									<input th:value="${data.getFault_code()}" type="text" name="fault_code" class="form-control">
								</div>
								<div class="col-md-3">
									<label>信号强度</label>
									<input th:value="${data.getCsq()}" type="text" name="csq" class="form-control">
								</div>
								<div class="col-md-3">
									<label>肥桶数量</label>
									<input th:value="${data.getRoad()}" type="text" name="road" class="form-control">
								</div>
							</div>

							<div class="row">
								<div class="col-md-3">
									<label>空气温度</label>
									<input th:value="${data.getAir_tem()}" type="text" name="air_tem" class="form-control">
								</div>
								<div class="col-md-3">
									<label>空气温度</label>
									<input th:value="${data.getAir_hum()}" type="text" name="air_hum" class="form-control">
								</div>
								<div class="col-md-3">
									<label>二氧化碳</label>
									<input th:value="${data.getCo2()}" type="text" name="co2" class="form-control">
								</div>
								<div class="col-md-3">
									<label>土壤温度</label>
									<input th:value="${data.getSoil_tem()}" type="text" name="soil_tem" class="form-control">
								</div>
							</div>

							<div class="row">
								<div class="col-md-3">
									<label>土壤湿度</label>
									<input th:value="${data.getSoil_hum()}" type="text" name="soil_hum" class="form-control">
								</div>
								<div class="col-md-3">
									<label>土壤PH</label>
									<input th:value="${data.getSoil_ph()}" type="text" name="soil_ph" class="form-control">
								</div>
								<div class="col-md-3">
									<label>土壤电导率</label>
									<input th:value="${data.getSoil_ec()}" type="text" name="soil_ec" class="form-control">
								</div>
								<div class="col-md-3">
									<label>土壤氮含量</label>
									<input th:value="${data.getSoil_n()}" type="text" name="soil_n" class="form-control">
								</div>
							</div>

							<div class="row">
								<div class="col-md-3">
									<label>土壤磷含量</label>
									<input th:value="${data.getSoil_p()}" type="text" name="soil_p" class="form-control">
								</div>
								<div class="col-md-3">
									<label>土壤钾含量</label>
									<input th:value="${data.getSoil_k()}" type="text" name="soil_k" class="form-control">
								</div>
								<div class="col-md-3">
									<label>压力值</label>
									<input th:value="${data.getPree()}" type="text" name="pree" class="form-control">
								</div>
								<div class="col-md-3">
									<label>主管道流速</label>
									<input th:value="${data.getMain_flow()}" type="text" name="main_flow" class="form-control">
								</div>
							</div>

							<div class="row">
								<div class="col-md-3">
									<label>主管道累计流量</label>
									<input th:value="${data.getMain_addflow()}" type="text" name="main_addflow" class="form-control">
								</div>
								<div class="col-md-3">
									<label>水泵状态</label>
									<input th:value="${data.getWater_pump()}" type="text" name="water_pump" class="form-control">
								</div>
								<div class="col-md-3">
									<label>肥泵状态</label>
									<input th:value="${data.getFerti_pump()}" type="text" name="ferti_pump" class="form-control">
								</div>
								<div class="col-md-3">
									<label>记录时间</label>
									<input th:value="${#dates.format(data.getCreate_time(),'yyyy-MM-dd HH:mm:ss')}" type="datetime-local"  name="create_time" class="form-control">
								</div>
							</div>

						</div>

					</form>

				</main>
			</div>
		</div>

	</body>

</html>